﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public static class EnumHelper
{
    /// <summary>
    /// String型转成团状态枚举型
    /// </summary>
    /// <param name="name"></param>
    /// <param name="igonreCase"></param>
    /// <returns></returns>
    public static TeamStateEnum Team_Str2Enum(string name, bool igonreCase)
    {
        return (TeamStateEnum)Enum.Parse(typeof(TeamStateEnum), name, igonreCase);
    }
}
